package com.yu.waterstation.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication(scanBasePackages = {"com.yu.waterstation.common", "com.yu.waterstation.system"})
@MapperScan("com.yu.**.mapper")
@RestController
public class WaterStationSystemRun {

    public static void main(String[] args) {
        SpringApplication.run(WaterStationSystemRun.class, args);
    }

    @GetMapping({"/status"})
    public String run() {
        return "服务器正常运行";
    }


    @GetMapping({"/404"})
    public String _404() {
        return "未找到对应的资源";
    }
}
